<ui:composition template="mainTemplate.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ui="http://java.sun.com/jsf/facelets" 
                >
    <ui:define name="title">Log</ui:define>

    <ui:define name="content">
        <h:form>

            <h:dataTable value="#{logController.items}" var="item"
                         bgcolor="#fafafa" border="0" cellpadding="5" cellspacing="3"
                         first="0" width="50%" frame="border" styleClass="dataTable">
                <h:column>
                    <f:facet name="header">
                        Level
                    </f:facet>
                    <h:outputText value="#{item.level}"/>
                </h:column>
                <h:column>
                    <f:facet name="header">
                        Timestamp
                    </f:facet>
                    <h:outputText value="#{item.date}"/>
                </h:column>
                <h:column>
                    <f:facet name="header">
                        Page
                    </f:facet>
                    <h:outputText value="#{item.page}"/>
                </h:column>
                <h:column>
                    <f:facet name="header">
                        Message
                    </f:facet>
                    <h:outputText value="#{item.message}"/>
                </h:column>
            </h:dataTable>
        </h:form>
    </ui:define>
</ui:composition>

